//
//  ViewController.swift
//  geekTimeDemo
//
//  Created by moon on 2020/2/20.
//  Copyright © 2020 moon. All rights reserved.
//

import UIKit

class ViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        
        let button = UIButton(type: .system)
        button.setTitle("click", for: .normal)
        button.addTarget(self, action: #selector(buttonClick), for: .touchUpInside)
        
        view.addSubview(button)
        
        button.snp.makeConstraints { (make) in
            make.width.height.equalTo(100)
            make.center.equalToSuperview()
        }
    }
    
    
    @objc func buttonClick() {
        print("buttonClick")
        
        let loginViewController = LoginViewController()
        navigationController?.pushViewController(loginViewController, animated: true)
    }


}

